.class public Lcom/instagram/android/g/f;
.super Lcom/instagram/android/g/a;
.source "FacebookAccountsGraphRequest.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/g/a",
        "<",
        "Ljava/util/List",
        "<",
        "Lcom/instagram/android/model/c;",
        ">;>;"
    }
.end annotation


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v4/app/aj;",
            "I",
            "Lcom/instagram/android/d/j/a",
            "<",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 38
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/instagram/android/g/a;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 39
    return-void
.end method

.method private a(Lcom/fasterxml/jackson/databind/JsonNode;)Ljava/util/List;
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/fasterxml/jackson/databind/JsonNode;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;"
        }
    .end annotation

    .prologue
    .line 77
    const/4 v1, 0x0

    .line 78
    const-string v0, "data"

    invoke-virtual {p1, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 79
    invoke-static {}, Lcom/instagram/android/service/f;->a()Lcom/instagram/android/service/f;

    move-result-object v2

    .line 80
    sget-object v3, Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;->CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES:Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;

    invoke-virtual {v2, v3}, Lcom/instagram/android/service/f;->setPropertyNamingStrategy(Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    .line 83
    :try_start_0
    invoke-virtual {v2, v0}, Lcom/instagram/android/service/f;->treeAsTokens(Lcom/fasterxml/jackson/a/v;)Lcom/fasterxml/jackson/a/l;

    move-result-object v0

    new-instance v3, Lcom/instagram/android/g/h;

    invoke-direct {v3, p0}, Lcom/instagram/android/g/h;-><init>(Lcom/instagram/android/g/f;)V

    invoke-virtual {v2, v0, v3}, Lcom/instagram/android/service/f;->readValue(Lcom/fasterxml/jackson/a/l;Lcom/fasterxml/jackson/a/f/b;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 88
    :goto_0
    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :cond_0
    return-object v0

    .line 85
    :catch_0
    move-exception v0

    move-object v0, v1

    goto :goto_0
.end method


# virtual methods
.method protected a(Lcom/instagram/android/d/b/c;)V
    .locals 2
    .parameter

    .prologue
    .line 43
    invoke-super {p0, p1}, Lcom/instagram/android/g/a;->a(Lcom/instagram/android/d/b/c;)V

    .line 44
    const-string v0, "type"

    const-string v1, "page"

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 45
    return-void
.end method

.method public synthetic b(Lcom/instagram/android/d/j/j;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 30
    invoke-virtual {p0, p1}, Lcom/instagram/android/g/f;->d(Lcom/instagram/android/d/j/j;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method protected d()Ljava/lang/String;
    .locals 1

    .prologue
    .line 49
    const-string v0, "me/accounts/"

    return-object v0
.end method

.method public d(Lcom/instagram/android/d/j/j;)Ljava/util/List;
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;>;)",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;"
        }
    .end annotation

    .prologue
    .line 55
    invoke-virtual {p1}, Lcom/instagram/android/d/j/j;->l()Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/g/f;->a(Lcom/fasterxml/jackson/databind/JsonNode;)Ljava/util/List;

    move-result-object v1

    .line 58
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .line 59
    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 60
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/c;

    .line 61
    invoke-virtual {v0}, Lcom/instagram/android/model/c;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 62
    invoke-interface {v2}, Ljava/util/Iterator;->remove()V

    goto :goto_0

    .line 67
    :cond_1
    new-instance v0, Lcom/instagram/android/g/g;

    invoke-direct {v0, p0}, Lcom/instagram/android/g/g;-><init>(Lcom/instagram/android/g/f;)V

    invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 73
    return-object v1
.end method
